package com.smiier.skin.util;

import java.math.RoundingMode;
import java.text.DecimalFormat;

@SuppressWarnings("serial")
public class GlobalFormat {

	public static final DecimalFormat CNY_FORMAT = new DecimalFormat("#.##") {
		{
			setRoundingMode(RoundingMode.FLOOR);
		}
	};

	public static String formatCNY(double v) {
		return CNY_FORMAT.format(v);
	}

}
